<? 
include"../inc/config.inc.php";
if($_POST[MODE]=="ADD")
{
$std_id=$_POST[std_id];
$std_name=$_POST[std_name];
$std_surname=$_POST[std_surname];
$personal_id=$_POST[personal_id];
$std_address=$_POST[std_address];
$std_phone=$_POST[std_phone];
$room_id=$_POST[room_id];
$year_id=$_POST[year_id];
$parent=$_POST[parent];
$sql="insert into student(std_id,std_name,std_surname,personal_id,std_address,std_phone,room_id,year_id,parent) values('$std_id','$std_name','$std_surname','$personal_id','$std_address','$std_phone','$room_id','$year_id','$parent')";
mysql_query($sql) or die (mysql_error());
echo"<meta http-equiv='refresh' content='0;URL=h_std.php'>";
}
?>